<template>
  <div class="cross-business-sharing">
    <div class="sharing-overview">
      <Row :gutter="16">
        <Col :span="8">
          <Card title="共享资源统计" :bordered="false">
            <div class="stat-item">
              <div class="stat-number">{{ stats.sharedResources }}</div>
              <div class="stat-label">共享资源数</div>
            </div>
          </Card>
        </Col>
        <Col :span="8">
          <Card title="跨业态调用" :bordered="false">
            <div class="stat-item">
              <div class="stat-number">{{ stats.crossBusinessCalls }}</div>
              <div class="stat-label">调用次数</div>
            </div>
          </Card>
        </Col>
        <Col :span="8">
          <Card title="共享效率" :bordered="false">
            <div class="stat-item">
              <div class="stat-number">{{ stats.sharingEfficiency }}%</div>
              <div class="stat-label">利用率</div>
            </div>
          </Card>
        </Col>
      </Row>
    </div>

    <div class="sharing-config">
      <Card title="共享配置" :bordered="false">
        <div class="placeholder-content">
          <IconifyIcon icon="mdi:share-variant" size="48" />
          <p>跨业态共享配置功能开发中...</p>
        </div>
      </Card>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { reactive } from 'vue';
import { Card, Col, Row } from 'ant-design-vue';
import { IconifyIcon } from '@vben/icons';

const stats = reactive({
  sharedResources: 156,
  crossBusinessCalls: 1247,
  sharingEfficiency: 78.5,
});
</script>

<style scoped>
.cross-business-sharing {
  padding: 20px;
}

.sharing-overview {
  margin-bottom: 24px;
}

.stat-item {
  padding: 20px 0;
  text-align: center;
}

.stat-number {
  margin-bottom: 8px;
  font-size: 32px;
  font-weight: bold;
  color: #1890ff;
}

.stat-label {
  font-size: 14px;
  color: #666;
}

.sharing-config {
  margin-bottom: 24px;
}

.placeholder-content {
  padding: 60px 20px;
  color: #999;
  text-align: center;
}

.placeholder-content p {
  margin-top: 16px;
  font-size: 16px;
}
</style>
